import request from '@/utils/request'

// 查询数据权限用户列表
export function listStoresAdmin(query) {
  return request({
    url: '/course/storesAdmin/list',
    method: 'get',
    params: query
  })
}

// 查询数据权限用户详细
export function getStoresAdmin(id) {
  return request({
    url: '/course/storesAdmin/' + id,
    method: 'get'
  })
}

// 新增数据权限用户
export function addStoresAdmin(data) {
  return request({
    url: '/course/storesAdmin',
    method: 'post',
    data: data
  })
}

// 修改数据权限用户
export function updateStoresAdmin(data) {
  return request({
    url: '/course/storesAdmin',
    method: 'put',
    data: data
  })
}

// 删除数据权限用户
export function delStoresAdmin(id) {
  return request({
    url: '/course/storesAdmin/' + id,
    method: 'delete'
  })
}
